<?php


	class Captcha{
		
		public static $captcha_input = "captcha_input";
		public static $captcha_session = "captcha_session";
		
		public function DoCaptchaView(){

			return "
			<p>Ange Captcha-koden:</p>
			<input style='height: 22px; width: 50px;' type='text' name='".self::$captcha_input."'/>
			<img style='position: relative; top: 3px;' src='captchaImage.php'/>
			<button style='font-size: 12px; height: 25px; float:none; margin:0;' width type='submit' >Ny</button>
			";
		
					
		}
		
		public function CorrectCaptchaCode(){
			
			if($_POST[self::$captcha_input] == $_SESSION[self::$captcha_session]){
				return true;
			}
			return false;
			
		}
		
		
		
		
		
	}
